package org.alfalfa.datawarehouse.model;

import com.mongodb.client.MongoCollection;
import org.alfalfa.datawarehouse.DWRecord;
import org.bson.Document;

/**
 * @Author : Max-Goday
 * @Created : 2016-10-22
 * @E-mail : goday.max@gmail.com
 * @Version : 1.0
 * @Copyright Alfalfa.cc
 */
public class Account extends DWRecord {
	protected Account(MongoCollection<Document> collection, Document document) {
		super(collection, document);
	}

	public Account setName(String name) {
		put("name", name);
		return this;
	}

	public Account setAccountId(String accountId) {
		put("accountId", accountId);
		return this;
	}

	public Account setPassToken(String passToken) {
		put("passToken", passToken);
		return this;
	}

	public Account setLoginData(String loginData) {
		put("loginData", loginData);
		return this;
	}

	public Account setUser(String user) {
		put("user", user);
		return this;
	}

}
